<?php
/***************************************************************************
 * 
 * Copyright (c) 2010 , Inc. All Rights Reserved
 * $Id$ 
 * 
 **************************************************************************/
 
 
 
/**
 * @file AllTestSuite.php
 * @author huqingping
 * @date 2010/05/17 18:58:28
 * @version $Revision$ 
 * @brief 
 *  
 **/

require_once 'PHPUnit/Framework.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
require_once dirname(__FILE__).'/defines.php';
require_once dirname(__FILE__).'/HapNTester.php';
require_once dirname(__FILE__).'/TestInput.php';
require_once dirname(__FILE__).'/TestEncoding.php';
require_once dirname(__FILE__).'/TestFormat.php';
require_once dirname(__FILE__).'/TestURL.php';
require_once dirname(__FILE__).'/TestError.php';
require_once dirname(__FILE__).'/TestView.php';
require_once dirname(__FILE__).'/TestFuncs.php';
require_once dirname(__FILE__).'/TestFilter.php';

class AllTestSuite extends PHPUnit_Framework_TestSuite
{
    public static function suite()
    {
        $suite = new AllTestSuite();

        //*
       $suite->addTestSuite('TestInput');
       $suite->addTestSuite('TestEncoding');
       $suite->addTestSuite('TestFormat');
       $suite->addTestSuite('TestURL');
       $suite->addTestSuite('TestError');
       $suite->addTestSuite('TestView');
        $suite->addTestSuite('TestFuncs');
        // */
        $suite->addTestSuite('TestFilter');
        //*/
        return $suite;
    }
}

class TestCase extends PHPUnit_Framework_TestCase
{
        function fetch($url,$inputs)
        {
                return HapNTester::run($this,
                        WEBSITE.$url,
                        $inputs);
        }
}

?>
